home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / AddressCodeBeanInfo.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  48 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3. import java.beans.*;
  4. import symantec.itools.beans.*;
  5.  
  6. //  09/13/97    LAB    Removed extranious getMethodDescriptors method.
  7.  
  8. /**
  9.  * BeanInfo for AddressCode.
  10.  *
  11.  */
  12. public class AddressCodeBeanInfo extends SimpleBeanInfo {
  13.  
  14.     /**
  15.      * Constructs a AddressCodeBeanInfo object.
  16.      */
  17.     public AddressCodeBeanInfo() {
  18.     }
  19.  
  20.     /**
  21.      * Gets a BeanInfo for the superclass of this bean.
  22.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  23.      */
  24.     public BeanInfo[] getAdditionalBeanInfo() {
  25.         try {
  26.             BeanInfo[] bi = new BeanInfo[1];
  27.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  28.             return bi;
  29.         }
  30.         catch (IntrospectionException e) { throw new Error(e.toString());}
  31.     }
  32.  
  33.     public MethodDescriptor[] getMethodDescriptors() { return new MethodDescriptor[0]; }
  34.  
  35.     /**
  36.      * Gets the SymantecBeanDescriptor for this bean.
  37.      * @return an object of type SymantecBeanDescriptor
  38.      * @see symantec.itools.beans.SymantecBeanDescriptor
  39.      */
  40.     public BeanDescriptor getBeanDescriptor() {
  41.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  42.  
  43.         return (BeanDescriptor) bd;
  44.     }
  45.  
  46.     private final static Class beanClass = AddressCode.class;
  47.  
  48.     }    //  end of class AddressCodeBeanInfo